import request from '@/utils/request'

// 查询设备管理列表
export function listDevicemanage(query) {
  return request({
    url: '/washer/devicemanage/list',
    method: 'get',
    params: query
  })
}

// 查询设备管理详细
export function getDevicemanage(deviceId) {
  return request({
    url: '/washer/devicemanage/' + deviceId,
    method: 'get'
  })
}

// 新增设备管理
export function addDevicemanage(data) {
  return request({
    url: '/washer/devicemanage',
    method: 'post',
    data: data
  })
}

// 修改设备管理
export function updateDevicemanage(data) {
  return request({
    url: '/washer/devicemanage',
    method: 'put',
    data: data
  })
}

// 删除设备管理
export function delDevicemanage(deviceId) {
  return request({
    url: '/washer/devicemanage/' + deviceId,
    method: 'delete'
  })
}
/*
获取设备批量下载标识
 */
export function getAllDownloadBatch(query) {
  return request({
    url: '/washer/devicemanage/get/all/downloadBatch',
    method: 'get',
    params: query
  })
}
